import java.io.File;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;


public class Scratch
{
	private static List entityPageArray = Arrays.asList(new String[][]{
			{"PERSON", "WorldPages:MemberDemographics"},
			{"PARTICIPANT", "WorldPages:MemberDemographics"},
			{"MEMBER", "WorldPages:MemberDemographics"},
			{"EMPLOYER", "WorldPages:EmployerDemographics"},
			{"CONFERENCE", "Workforce:ConferenceMaintenancePage"}
		});
	
	public static void main(String[] args)
	{
		int dividend = 900;
		int divisor = 1000;
		int quotient = dividend / divisor;
		int remainder = dividend % divisor;
		System.out.println(dividend + " / " + divisor);
		System.out.println("quotient  = " + quotient);
		System.out.println("remainder = " + remainder); 
		
		String relativePath = "classpath:myFilePath";
		if (relativePath.startsWith("classpath:")) {
			System.out.println("original: " + relativePath);
			System.out.println("substring: " + relativePath.substring("classpath:".length()));
		}
		
		List<String> batchIds = new ArrayList<String>();
		batchIds.add("1");
		batchIds.add("22");
		batchIds.add("333");
		System.out.println("batchIds list toString(): " + batchIds.toString());
		
		DateFormat df = new SimpleDateFormat("MMddyyyy.hhmmss");
		
		System.out.println("timestamp: " + new Date().getTime());
		System.out.println("timestamp: " + df.format(new Date().getTime()));
		
		//testEntityPageArray();
	
//		List list = Arrays.asList(null);
//		System.out.println(list);
//		
//		System.out.println("pathSeparator: " + File.pathSeparator);
//		System.out.println("separator: " + File.separator);
//		
//		System.out.println("emp'l'oyees' info".replaceAll("'", "\\\\'"));

		/////////////
		
//		System.out.println("some_string equals null? " + "some_string".equals(null));
//		
//		List list = new ArrayList();
//		list.add("string");
//		list.add(Integer.valueOf("10"));
//		System.out.println("list = " + list);
//		
//		
//		byte[] byteBuffer = new byte[0];
//		System.out.println("new byte[0] length: " + byteBuffer.length);
//		
//		testSet();
//		
//		System.out.println("F:/Documentum");
	}

	/**
	 * 
	 */
	private static void testEntityPageArray()
	{
		System.out.println("entityPageArray:\n" + entityPageArray);		
		for (Iterator iter = entityPageArray.iterator(); iter.hasNext(); )
		{
			Object element = iter.next();
			String[] arr = (String[]) element;
			System.out.println("element: " + element + ", class: " + element.getClass().getName());
			for (int i=0; i < arr.length; i++)
				System.out.println("arr[" + i + "]: " + arr[i]);
		}
	}
	
	private static void testSet()
	{
		Set set = new LinkedHashSet();
		set.add("1");
		set.add("1");
		set.add("2");
		set.add("2");
		set.add("3");
		
		System.out.println(set);		
	}
	
}
